package com.example.shop.user.dto;


import com.example.shop.order.enums.PaymentMethod;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsBuyInfo {
    /**
     * 购买的商品
     */
    @NotNull
    private Long goodsId;
    /**
     * 购买的类型
     */
    @NotEmpty
    private String buyGoodsClass;
    /**
     * 购买的数量
     */
    @NotNull
    private Integer buyNum;
    //优惠卷
    /**
     * 付款方式，由于当前只接通了微信支付，所以默认微信支付
     */
    private PaymentMethod payment = PaymentMethod.WX_PAY;
    /**
     * 填写的发货地址
     */
    @NotNull
    private Long linkmanId;
}
